package com.gaohe.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gaohe.mapper.OrdersMapper;
import com.gaohe.pojo.Orders;
import com.gaohe.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrdersServiceImpl extends ServiceImpl<OrdersMapper, Orders> implements OrderService {
    @Autowired
    private OrdersMapper ordersMapper;

    @Override
    public List<Orders> selectAll(String status) {
        return ordersMapper.getAll(status);
    }
}
